package com.neusoft.resturant.service.impl;

import com.neusoft.resturant.entity.ResBanner;
import com.neusoft.resturant.mapper.ResBannerMapper;
import com.neusoft.resturant.service.IResBannerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 轮播图Service业务层处理
 * 
 * @author lzx
 * @date 2023-09-27
 */
@Service
public class ResBannerServiceImpl implements IResBannerService
{
    @Autowired
    private ResBannerMapper resBannerMapper;

    /**
     * 查询轮播图
     * 
     * @param id 轮播图主键
     * @return 轮播图
     */
    @Override
    public ResBanner selectResBannerById(Long id)
    {
        return resBannerMapper.selectResBannerById(id);
    }

    @Override
    public List<ResBanner> selectResBannerList(ResBanner resBanner) {

        return  resBannerMapper.selectResBannerList(resBanner);
    }
}
